package com.globant.dashboard.webapp.controllers;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
public class LoginController {
	
	@RequestMapping( value = "login.do" , method = RequestMethod.GET)
	public String Home(Model model,HttpServletRequest request){
		if(request.getParameter("error")!=null && request.getParameter("error").equals("true"))
			model.addAttribute("errorMsg", "Complete with valid information");
		return "userLogin";
	}

}
